import Vue from 'vue';
import Vuex from 'vuex';
import user from './user';
Vue.use(Vuex);
const store = () => new Vuex.Store({
  state: {
  },
  mutations: {
  },
  modules: {
    user
  },
  actions:{
    nuxtServerInit({commit}){
      console.log('nuxtServerInit 运行了----------11111')
      commit('user/M_LOGIN','小nuxtser')
    }
  }
});
export default store